home *** CD-ROM | disk | FTP | other *** search
/ ShareWare OnLine 2 / ShareWare OnLine Volume 2 (CMS Software)(1993).iso / educate / 7_dayc3.zip / TUTOR.ZIP / CT6.DAT < prev    next >
Text File  |  1993-01-08  |  41KB  |  937 lines

  1. CLS,1,25,7,0
  2. 18,0,15,0,"DAY 6:  ADVANCED DOS COMMANDS AND PROGRAMS"
  3. MAIN,NULL
  4. CLS,1,25,0,1
  5. BOX,1,1,25,80,1,9,1
  6. 3,0,3,1,"████    ███   █   █  █  █████       █████  █████  █   █  █  █████   █"
  7. 4,0,3,1,"█   █  █   █  ██  █  ▐    █         █   █  █   █  ██  █  █  █       █"
  8. 5,0,3,1,"█   █  █   █  █ █ █       █         █████  █████  █ █ █  █  █       █"
  9. 6,0,3,1,"█   █  █   █  █  ██       █         █      █   █  █  ██  █  █        "
  10. 7,0,3,1,"████    ███   █   █       █         █      █   █  █   █  █  █████   █"
  11. 9,8,2,1,"ADVANCED DOS???  OH NO!  That's the reaction we get from most people."
  12. 10,8,2,1,"~DOS is difficult enough without getting into the advanced areas!~"
  13. 11,8,2,1,"But these ~advanced~ programs and commands give you extra power;"
  14. 12,8,2,1,"they will GREATLY simplify your computer use!"
  15. SPACE,1,2
  16. 14,0,3,1,"These items are (just so you get them in mind):"
  17. 15,12,7,1,"AUTOEXEC.BAT  perform steps AUTOMATICALLY when booting"
  18. 16,12,7,1,"CONFIG.SYS    define the computer configuration"
  19. 17,12,7,1,"EDLIN.COM     simplified word processor-- EDIT LINES"
  20. 18,12,7,1,"BACKUP.COM    Back up your hard disk system to floppy"
  21. 19,12,7,1,"RESTORE.COM   Pull backed up information from floppies"
  22. 20,12,7,1,"BATCH FILES   Perform often-used steps automatically"
  23. SPACE,1,7
  24. CLS,1,25,0,2 
  25. BOX,1,1,25,80,1,9,2 
  26. 3,8,0,2,"Now RELAX.  These things are not hard to learn.  True, they take"
  27. 4,8,0,2,"extreme amounts of mental energy and each single command has multiple"
  28. 5,8,0,2,"parts, but hey, what is a little bit of complexity when sheer"
  29. 6,8,0,2,"computing POWER is involved?"
  30. SPACE,2,0
  31. 8,8,1,2,"So, are you ready?  Well, we'll start anyway.  The first thing we are"
  32. 9,8,1,2,"going to discuss is EDLIN.  Edlin is an easy-to-use line editor."
  33. 10,8,1,2,"It is ALMOST a word-processor, but not much of one.  The value of"
  34. 11,8,1,2,"the EDLIN program is not in it's extensive set of commands (it only"
  35. 12,8,1,2,"has 13, and we're only going to discuss 6 of them).  EDLIN is"
  36. 13,8,1,2,"valuable due to its ease and speed of use."
  37. SPACE,2,1
  38. 15,8,0,2,"Why EDLIN?  Sometimes you need to quickly create a file, or change"
  39. 16,8,0,2,"an already existing file.  While COPY CON:FILENAME will let you"
  40. 17,8,0,2,"create a file, it will not let you correct mistakes or update an"
  41. 18,8,0,2,"old file.  Thus, EDLIN... a ~quick and dirty~ line editor."
  42. SPACE,2,0
  43. CLS,1,25,0,3
  44. 3,0,15,3,"█████ ████  █     █ █   █     █████  █  █     █████ █   █ █████ ███████ █████"
  45. 4,0,15,3,"█     █   █ █     █ ██  █     █      █  █     █     ██  █ █   █ █  █  █ █    "
  46. 5,0,15,3,"████  █   █ █     █ █ █ █     ████   █  █     ████  █ █ █ █████ █  █  █ ████ "
  47. 6,0,15,3,"█     █   █ █     █ █  ██     █      █  █     █     █  ██ █   █ █  █  █ █    "
  48. 7,0,15,3,"█████ ████  █████ █ █   █     █      █  █████ █████ █   █ █   █ █  █  █ █████"
  49. 9,8,0,3,"To use EDLIN, just enter EDLIN and the name of the file you wish to"
  50. 10,8,0,3,"edit.  There are 13 EDLIN commands.  Some are in constant use, others"
  51. 11,8,0,3,"you will probably NEVER use.  The ones we will cover are:"
  52. SPACE,3,0
  53. 13,0,1,3,"A  Append to end of file    "
  54. 14,0,1,3,"D  Delete line(s)           "
  55. 15,0,1,3,"E  End editing and save file"
  56. 16,0,1,3,"I  Insert new lines         "
  57. 17,0,1,3,"L  List current lines       "
  58. 18,0,1,3,"Q  Quit edit without saving "
  59. SPACE,3,1
  60. CLS,1,25,0,4 
  61. BOX,1,1,25,80,1,9,4
  62. 3,0,3,4,"A  Append to end of file    "
  63. 4,0,3,4,"D  Delete line(s)           "
  64. 5,0,3,4,"E  End editing and save file"
  65. 6,0,3,4,"I  Insert new lines         "
  66. 7,0,3,4,"L  List current lines       "
  67. 8,0,3,4,"Q  Quit edit without saving "
  68. 10,8,3,4,"Go ahead and use edlin to create a file called EDTEST."
  69. 11,8,0,4,"C>"
  70. INPUT,2,11,10,ANY
  71. IF,2,NOT,EDLIN EDTEST,11,40,7,4,"Try:  EDLIN EDTEST"
  72. IF,2,NOT,EDLIN EDTEST,INPUT,2,11,10,EXACT,EDLIN EDTEST
  73. 12,8,0,4,"*"
  74. 16,8,0,4,"The * shown above means EDLIN is waiting for you to enter your"
  75. 17,8,0,4,"instructions.  Two of the EDLIN commands work just by entering"
  76. 18,8,0,4,"the specific command.  A (append) and E (end) will both do what they"
  77. 19,8,0,4,"are supposed to without any additional instructions.  The Q (quit)"
  78. 20,8,0,4,"command asks Abort edit? (Y/N).  If you enter Y then the EDLIN"
  79. 21,8,0,4,"session will be stopped without saving the file you have updated."
  80. SPACE,3,0
  81. CLS,1,25,0,5 
  82. BOX,1,1,25,80,1,9,5
  83. 3,8,7,5,"The remaining three commands work in the same manner.  I (insert),"
  84. 4,8,7,5,"L (list) and D (delete) are accompanied by LINE NUMBERS.  What are"
  85. 5,8,7,5,"are line numbers?  Each line of text is numbered by the EDLIN"
  86. 6,8,7,5,"program.  These numbers are not inserted in the text; they are"
  87. 7,8,7,5,"just temporary references for use while in EDLIN.  An example:"
  88. SPACE,5,7
  89. 9,8,0,5, "     1: This is the first line of a sample EDLIN file."
  90. 10,8,0,5,"     2: This is the second line."
  91. 11,8,0,5,"     3: This is the third line."
  92. 12,8,0,5,"     4: I wonder how much longer I can get away with this?"
  93. 13,8,0,5,"*"
  94. SPACE,5,0
  95. 15,8,3,5,"These line numbers are used to direct EDLIN when you wish to edit"
  96. 16,8,3,5,"a line or group of lines.  In order to do this, you have to remember"
  97. 17,8,3,5,"the layout of EDLIN commands:"
  98. 18,8,3,5,"       NUMBER,NUMBER COMMAND."
  99. 19,8,0,5,"             │"
  100. 20,8,0,5,"(see the comma?)"
  101. SPACE,5,0
  102. CLS,1,25,0,6 
  103. BOX,1,1,25,80,1,9,6
  104. 3,0,7,6,"NUMBER,NUMBER COMMAND"
  105. 5,8,0,6,"These commands are easy to use.  Let's take a look at a few:"
  106. 7,12,7,6,"I         Insert lines, beginning with line number 1."
  107. 8,12,7,6,"1I        Does the same thing.  Insert starting with line 1."
  108. SPACE,6,7
  109. 10,12,7,6,"L        Lists lines 1-23"
  110. 11,12,7,6,"1L       Does the same thing; lists lines 1-23"
  111. 12,12,7,6,"5,10L    Lists lines 5 through 10"
  112. 13,12,7,6,"12L      Lists the next 23 lines, starting with line 12"
  113. SPACE,6,7
  114. 15,12,7,6,"5d       Deletes line 5"
  115. 16,12,7,6,"5,10d    Deletes lines 5 through 10"
  116. SPACE,7,6
  117. 18,8,0,6,"See how these work?  Place the line number(s) first, and the"
  118. 19,8,0,6,"command following.  Double line numbers are separated by a comma."
  119. SPACE,6,0
  120. 21,8,7,6,"The only other thing you need to remember is ^Z (ctrl Z).  Do you"
  121. 22,8,7,6,"remember what that is?  END OF FILE.  That is what we use to STOP"
  122. 23,8,7,6,"the INSERT function of EDLIN."
  123. SPACE,6,7
  124. CLS,1,25,3,1 
  125. BOX,1,1,6,80,1,13,1
  126. BOX,7,1,25,40,1,10,1
  127. BOX,7,41,25,80,1,12,1
  128. 2,8,3,1,"Let's create a test file using the edlin program.  On the left side"
  129. 3,8,3,1,"of the screen we will show the computer screen.  On the right side"
  130. 4,8,3,1,"we will give you instructions on what to do next.  The plot of the"
  131. 5,8,3,1,"story:  we will be starting an address file."
  132. SPACE,1,3
  133. 10,43,7,1,"Instruct the computer to use EDLIN"
  134. 11,43,7,1,"with the filename ADDRESS."
  135. 9,3,7,1,"C>"
  136. INPUT,2,9,5,ANY
  137. IF,2,NOT,EDLIN ADDRESS,15,43,15,1,"TRY: EDLIN ADDRESS"
  138. IF,2,NOT,EDLIN ADDRESS,INPUT,2,9,5,EXACT,EDLIN ADDRESS
  139. 10,3,7,1,"*"
  140. 10,43,7,1,"                                  "
  141. 11,43,7,1,"                                  "
  142. 15,43,7,1,"                                  "
  143. 10,43,7,1,"Tell EDLIN to insert at line 1."
  144. INPUT,2,10,4,ANY
  145. IF,2,NOT,1I,15,43,15,1,"TRY:  1I"
  146. IF,2,NOT,1I,INPUT,2,10,4,EXACT,1I
  147. 11,5,7,1,"1:"
  148. 10,43,7,1,"                                  "
  149. 11,43,7,1,"                                  "
  150. 15,43,7,1,"                                  "
  151. 10,43,7,1,"Type in this line:"
  152. 11,43,7,1,"DREW SOFTWARE"
  153. INPUT,2,11,7,ANY
  154. IF,2,NOT,DREW SOFTWARE,15,43,15,1,"TRY: DREW SOFTWARE"
  155. IF,2,NOT,DREW SOFTWARE,INPUT,2,11,7,EXACT,DREW SOFTWARE
  156. 12,5,7,1,"2:"
  157. 10,43,7,1,"                                  "
  158. 11,43,7,1,"                                  "
  159. 15,43,7,1,"                                  "
  160. 10,43,7,1,"Now type this line:"
  161. 11,43,7,1,"(417)781-4248"
  162. INPUT,2,12,7,ANY
  163. IF,2,NOT,(417)781-4248,15,43,15,1,"TRY: (417)781-4248"
  164. IF,2,NOT,(417)781-4248,INPUT,2,12,7,EXACT,(417)781-4248
  165. 13,5,7,1,"3:"
  166. 10,43,7,1,"                                  "
  167. 11,43,7,1,"                                  "
  168. 15,43,7,1,"                                  "
  169. 10,43,7,1,"Type this line:"
  170. 11,43,7,1,"JOPLIN MO 64802"
  171. INPUT,2,13,7,ANY
  172. IF,2,NOT,JOPLIN MO 64802,15,43,15,1,"TRY: JOPLIN MO 64802"
  173. IF,2,NOT,JOPLIN MO 64802,INPUT,2,13,7,EXACT,JOPLIN MO 64802
  174. 14,5,7,1,"4:"
  175. 10,43,7,1,"                                  "
  176. 11,43,7,1,"                                  "
  177. 15,43,7,1,"                                  "
  178. 10,43,7,1,"Now tell EDLIN you are finished:"
  179. 11,43,7,1,"   Enter  ctrl-Z   (^Z)"
  180. INKEY,2,ANY
  181. 14,7,7,1,"^Z"
  182. INPUT,2,14,9,ANY
  183. 15,3,7,1,"*"
  184. 10,43,7,1,"                                  "
  185. 11,43,7,1,"                                  "
  186. 15,43,7,1,"                                  "
  187. 10,43,7,1,"Now let's insert a line at 3:"
  188. INPUT,2,15,4,ANY
  189. IF,2,NOT,3I,15,43,7,1,"TRY:  3I"
  190. IF,2,NOT,3I,INPUT,2,15,4,EXACT,3I
  191. 16,5,7,1,"3:"
  192. 10,43,7,1,"                                  "
  193. 11,43,7,1,"                                  "
  194. 15,43,7,1,"                                  "
  195. 10,43,7,1,"Enter the new line:"
  196. 11,43,7,1,"PO BOX 101"
  197. INPUT,2,16,7,ANY
  198. IF,2,NOT,PO BOX 101,15,43,7,1,"TRY: PO BOX 101"
  199. IF,2,NOT,PO BOX 101,INPUT,2,16,7,EXACT,PO BOX 101
  200. 17,5,7,1,"4:"
  201. 10,43,7,1,"                                  "
  202. 11,43,7,1,"                                  "
  203. 15,43,7,1,"                                  "
  204. 10,43,7,1,"Good.  End the insertion."
  205. 11,43,7,1,"   Enter CTRL Z"
  206. INKEY,2,ANY
  207. 17,7,7,1,"^Z"
  208. INPUT,2,17,9,ANY
  209. 18,3,7,1,"*"
  210. 10,43,7,1,"                                  "
  211. 11,43,7,1,"                                  "
  212. 15,43,7,1,"                                  "
  213. 10,43,7,1,"Let's delete line 2:"
  214. 11,43,7,1,"    Enter:  2D"
  215. INPUT,2,18,4,ANY
  216. IF,2,NOT,2D,15,43,15,1,"TRY:  2D"
  217. IF,2,NOT,2D,INPUT,2,18,4,EXACT,2D
  218. 19,3,7,1,"*"
  219. 10,43,7,1,"                                  "
  220. 11,43,7,1,"                                  "
  221. 15,43,7,1,"                                  "
  222. 10,43,7,1,"Now let's list our file:"
  223. 11,43,7,1,"   Enter:   L"
  224. INPUT,2,19,4,ANY
  225. IF,2,NOT,L,15,43,7,1,"TRY:  L"
  226. IF,2,NOT,L,INPUT,2,19,4,EXACT,L
  227. 20,5,7,1,"1:DREW SOFTWARE"
  228. 21,5,7,1,"2:PO BOX 101"
  229. 22,5,7,1,"3:JOPLIN MO  64802"
  230. 23,3,7,1,"*"
  231. 10,43,7,1,"                                  "
  232. 11,43,7,1,"                                  "
  233. 15,43,7,1,"                                  "
  234. 10,43,7,1,"Now EXIT and SAVE the file:"
  235. 11,43,7,1,"   Enter:  E"
  236. INPUT,2,23,4,EXACT,E
  237. 10,43,7,1,"                                  "
  238. 11,43,7,1,"                                  "
  239. 15,43,7,1,"                                  "
  240. 15,54,29,1,"VERY GOOD!!!!"
  241. SPACE,1,7
  242. CLS,1,25,3,7 
  243. BOX,1,1,25,80,1,9,7
  244. 3,0,1,7,"████    ███   █████  █████  █   █        █████  █  █      █████  █████"
  245. 4,0,1,7,"█   █  █   █    █    █      █   █        █      █  █      █      █    "
  246. 5,0,1,7,"████   █   █    █    █      █████        ████   █  █      ████   █████"
  247. 6,0,1,7,"█   █  █████    █    █      █   █        █      █  █      █          █"
  248. 7,0,1,7,"████   █   █    █    █████  █   █        █      █  █████  █████  █████"
  249. 9,8,5,7,"You often have to perform the same functions over and over again"
  250. 10,8,5,7,"when you use computers.  You may need to enter accounting records"
  251. 11,8,5,7,"every day.  Or you may need to type letters, or enter new client"
  252. 12,8,5,7,"names and addresses.  Every time you do this, you perform the same"
  253. 13,8,5,7,"steps, enter the same commands.  You enter the command to switch to"
  254. 14,8,5,7,"the proper subdirectory.  You enter the command to set the date and"
  255. 15,8,5,7,"time.  You enter the program command.  Wouldn't it be nice to enter"
  256. 16,8,5,7,"one command that would perform several steps automatically?"
  257. SPACE,7,5
  258. CLS,1,25,3,0 
  259. BOX,1,1,25,80,1,14,0
  260. 3,0,2,0,"   ████    ███   █████"
  261. 4,0,2,0,"   █   █  █   █    █  "
  262. 5,0,2,0,"   ████   █   █    █  "
  263. 6,0,2,0,"   █   █  █████    █  "
  264. 7,0,2,0,"█  ████   █   █    █  "
  265. 9,8,3,0,"BATCH files are lists of computer instructions.  They are a"
  266. 10,8,3,0,"method of simplified computer programming.  Your computer knows a"
  267. 11,8,3,0,"batch file when it sees one because the filename always has an"
  268. 12,8,3,0,"extension of .BAT."
  269. 12,21,15,0,".BAT"
  270. SPACE,0,3
  271. 14,8,4,0,"Let's take a look at a sample BATCH file:"
  272. 16,15,5,0,"DATE"
  273. 17,15,5,0,"TIME"
  274. 18,15,5,0,"PROMPT $P$G"
  275. 19,15,5,0,"DIR/W"
  276. SPACE,0,5
  277. 16,30,7,0,"<-- Lets you enter the date"
  278. SPACE,0,5
  279. 17,30,7,0,"<-- Lets you enter the time"
  280. SPACE,0,5
  281. 18,30,7,0,"<-- Sets the DOS PROMPT to show directory name"
  282. SPACE,0,5
  283. 19,30,7,0,"<-- Displays the directory across the screen"
  284. SPACE,0,5
  285. CLS,1,25,3,1 
  286. BOX,1,1,25,80,1,14,1
  287. 3,15,2,1,"DATE"
  288. 4,15,2,1,"TIME"
  289. 5,15,2,1,"PROMPT $P$G"
  290. 6,15,2,1,"DIR/W"
  291. 8,8,3,1,"Let's imagine this batch file is called STARTUP.BAT.  We would make"
  292. 9,8,3,1,"this file operate by entering the command:  STARTUP.  Try it:"
  293. 11,8,7,1,"C>"
  294. INPUT,2,11,10,ANY
  295. IF,2,NOT,STARTUP,11,40,15,1,"TRY:  STARTUP"
  296. IF,2,NOT,STARTUP,INPUT,2,11,10,EXACT,STARTUP
  297. 12,8,7,1,"C>DATE"
  298. 13,8,7,1,"Current date is Sat 3-05-1986"
  299. 14,8,7,1,"Enter new date (mm-dd-yy):"
  300. 14,60,7,1,"(Enter 03-06-86)"
  301. INPUT,2,14,35,EXACT,03-06-86
  302. 15,8,7,1,"C>TIME"
  303. 16,8,7,1,"Current time is 16:34:58.24"
  304. 17,8,7,1,"Enter new time:"
  305. 17,60,7,1,"(Enter 16:40)"
  306. INPUT,2,17,24,EXACT,16:40
  307. 18,8,7,1,"C>PROMPT $P$G"
  308. 19,8,7,1,"C:\TESTDIR>DIR/W"
  309. 20,8,7,1,".         ..         FILE1.DOC       FILE1.EXE      STARTUP.BAT"
  310. 21,8,7,1,"      5 File(s)     206848 bytes free"
  311. SPACE,1,7
  312. CLS,1,25,3,2 
  313. BOX,1,1,25,80,1,14,2
  314. 3,0,1,2,"BATCH FILE FUNCTIONS"
  315. 5,8,0,2,"You can execute just about ANY command from within a batch file."
  316. 6,8,0,2,"In addition, there are special BATCH COMMANDS to give you more power"
  317. 7,8,0,2,"than just normal DOS.  We'll discuss them here:"
  318. SPACE,2,0
  319. 9,10,1,2,"ECHO OFF        Echo means the computer displays what it is"
  320. 10,10,1,2,"               doing on the screen.  ECHO OFF turns that echo"
  321. 11,10,1,2,"               off so the comptuer does what it is supposed to"
  322. 12,10,1,2,"               do without cluttering the screen"
  323. SPACE,2,1
  324. 13,10,1,2,"GOTO area      Skips to the area indicated"
  325. SPACE,2,1
  326. 14,10,1,2,"IF             If a condition exists, perform additional steps"
  327. SPACE,2,1
  328. 15,10,1,2,"PAUSE          Displays PRESS ENTER and waits for you to press"
  329. 16,10,1,2,"               ENTER before continuing"
  330. SPACE,2,1
  331. 17,10,1,2,"REM            Remark, a comment within a batch file"
  332. SPACE,2,1
  333. 18,10,1,2,"EXIST          Checks to see if a file is present"
  334. SPACE,2,1
  335. 19,10,1,2,"NOT            If something is NOT the case (ie IF NOT EXIST FILE)"
  336. SPACE,2,1
  337. 20,10,1,2,":LABEL         Marks a section of the batch file (ie GOTO LABEL)"
  338. SPACE,2,1
  339. 22,10,0,2,"There are other batch file commands, but they are seldom used."
  340. 23,10,0,2,"We will cover the commands listed above."
  341. SPACE,2,0
  342. CLS,1,25,3,3 
  343. BOX,1,1,25,80,1,14,3
  344. 3,8,0,3,"Let's consider the batch file shown here-- MOVE.BAT:"
  345. 5,22,1,3, "ECHO OFF"
  346. 6,22,1,3, "CLS"
  347. 7,22,1,3, "REM COPIES FILES FROM ONE AREA TO ANOTHER"
  348. 8,22,1,3, "REM AND THEN DELETES THE ORIGINALS."
  349. 9,22,1,3, "ECHO FILE COPIER AND DELETER"
  350. 10,22,1,3,"PAUSE"
  351. 11,22,1,3,"IF ~%2~ == ~~ GOTO END"
  352. 12,22,1,3,"IF NOT EXIST %1 GOTO END"
  353. 13,22,1,3,"COPY %1 %2"
  354. 14,22,1,3,"DEL %1"
  355. 15,22,1,3,"ECHO FILE %1 HAS BEEN COPIED"
  356. 16,22,1,3,":END"
  357. SPACE,3,1
  358. CLS,17,23,3,3
  359. BOX,17,1,23,80,1,14,3
  360. 5,22,17,3,"ECHO OFF"
  361. 18,8,0,3,"ECHO OFF  tells the system to not display the batch file commands"
  362. 19,8,0,3,"as they are being performed.  For example, the second command, CLS"
  363. 20,8,0,3,"will cause the screen to clear, but the CLS command itself will not"
  364. 21,8,0,3,"be shown on the screen.  If echo was on, you would see CLS appear"
  365. 22,8,0,3,"just before the screen cleared."
  366. SPACE,3,0
  367. 5,22,1,3,"ECHO OFF"
  368. CLS,17,23,3,3
  369. BOX,17,1,23,80,1,14,3
  370. 6,22,17,3,"CLS"
  371. 19,8,0,3,"This line clears the screen."
  372. SPACE,3,0
  373. 6,22,1,3,"CLS"
  374. CLS,17,23,3,3
  375. BOX,17,1,23,80,1,14,3
  376. 7,22,17,3,"REM COPIES FILES FROM ONE AREA TO ANOTHER"
  377. 8,22,17,3,"REM AND THEN DELETES THE ORIGINALS"
  378. 18,8,0,3,"REM is a remark.  These two remarks tell us exactly what this"
  379. 19,8,0,3,"batch file is going to do.  It is used to make file copying"
  380. 20,8,0,3,"easier.  Instead of the command:  COPY FILE FILE2 and then"
  381. 21,8,0,3,"issuing another command  DEL FILE, we just type in"
  382. 22,8,0,3,"MOVE FILE1 FILE2 and the computer does the rest."
  383. SPACE,0,3
  384. 7,22,1,3,"REM COPIES FILES FROM ONE AREA TO ANOTHER"
  385. 8,22,1,3,"REM AND THEN DELETES THE ORIGINALS"
  386. CLS,17,23,3,3
  387. BOX,17,1,23,80,1,14,3
  388. 9,22,17,3,"ECHO FILE COPIER AND DELETER"
  389. 18,8,0,3,"This line negates momentarily the ECHO OFF command and displays"
  390. 19,8,0,3,"this single instruction line to the screen."
  391. SPACE,3,0
  392. 9,22,1,3,"ECHO FILE COPIER AND DELETER"
  393. CLS,17,23,3,3
  394. BOX,17,1,23,80,1,14,3
  395. 10,22,17,3,"PAUSE"
  396. 19,8,0,3,"PAUSE causes the computer to wait for you to press the ENTER"
  397. 20,8,0,3,"key before it continues with the rest of the batch file.  It will"
  398. 21,8,0,3,"display STRIKE A KEY WHEN READY as a prompt."
  399. SPACE,3,0
  400. 10,22,1,3,"PAUSE"
  401. CLS,17,23,3,3
  402. BOX,17,1,23,80,1,14,3
  403. 11,22,17,3,"IF ~%2~ == ~~ GOTO END"
  404. 18,8,0,3,"%2 is a VARIABLE for the filename.  The command you gave the"
  405. 19,8,0,3,"computer was MOVE FILE1 FILE2.  When you enter the names for FILE1"
  406. 20,8,0,3,"and FILE2, the computer places those file names into holding areas,"
  407. 21,8,0,3,"VARIABLES called %1 and %2.  So in this line you are saying:"
  408. 22,8,0,3,"if the second filename = nothing  (== ~~) then GOTO the END area."
  409. SPACE,3,0
  410. CLS,17,23,3,3
  411. BOX,17,1,23,80,1,14,3
  412. 18,8,0,3,"What exactly does this line do?  In short, it tells the computer"
  413. 19,8,0,3,"that if the user forgets to enter a second filename, then skip"
  414. 20,8,0,3,"the entire process and exit the batch file (GOTO END):"
  415. 21,8,0,3,"  IF FILENAME = NOTHING, STOP."
  416. SPACE,3,0
  417. 11,22,1,3,"IF ~%2~ == ~~ GOTO END"
  418. CLS,17,23,3,3
  419. BOX,17,1,23,80,1,14,3
  420. 12,22,17,3,"IF NOT EXIST %1 GOTO END"
  421. 18,8,0,3,"This is somewhat similar to the previous line, but we are using two"
  422. 19,8,0,3,"new parameters, NOT and EXIST.  EXIST means: does the file exist?"
  423. 20,8,0,3,"So in effect, we are telling the computer that if the filename"
  424. 21,8,0,3,"we gave it does not exist on the disk, stop the batch file."
  425. SPACE,3,0
  426. 12,22,1,3,"IF NOT EXIST %1 GOTO END"
  427. CLS,17,23,3,3
  428. BOX,17,1,23,80,1,14,3
  429. 13,22,17,3,"COPY %1 %2"
  430. 18,8,0,3,"This is a little easier.  It uses the good old COPY command, and"
  431. 19,8,0,3,"simply copies the first filename to the second filename.  So for"
  432. 20,8,0,3,"example, if we wanted to copy ACCOUNTS to ACCOUNTS.BAK we would"
  433. 21,8,0,3,"enter MOVE ACCOUNTS *.BAK.   The computer would see:"
  434. 22,0,0,3,"COPY ACCOUNTS ACCOUNTS.BAK"
  435. SPACE,3,0
  436. 13,22,1,3,"COPY %1 %2"
  437. CLS,17,23,3,3
  438. BOX,17,1,23,80,1,14,3
  439. 19,8,0,3,"Did you remember that * means WILDCARD, and that"
  440. 20,8,0,3,"   COPY ACCOUNTS *.BAK is the same as COPY ACCOUNTS ACCOUNTS.BAK"
  441. SPACE,3,0
  442. CLS,17,23,3,3
  443. BOX,17,1,23,80,1,14,3
  444. 14,22,17,3,"DEL %1"
  445. 18,8,0,3,"This is the DELETE command, and tells the computer to delete the"
  446. 19,8,0,3,"first file after it has been copied.  This frees up the space"
  447. 20,8,0,3,"the first file occupied so that we can use that space for new"
  448. 21,8,0,3,"information."
  449. SPACE,3,0
  450. 14,22,1,3,"DEL %1"
  451. CLS,17,23,3,3
  452. BOX,17,1,23,80,1,14,3
  453. 15,22,17,3,"ECHO FILE %1 HAS BEEN COPIED"
  454. 18,8,0,3,"This line again overrides the ECHO OFF to tell us that the file"
  455. 19,8,0,3,"has been copied to the new filename.  The %1 will be displayed"
  456. 20,8,0,3,"not as %1, but as the first file name we entered:"
  457. 21,0,0,3,"FILE ACCOUNTS HAS BEEN COPIED."
  458. SPACE,3,0
  459. 15,22,1,3,"ECHO FILE %1 HAS BEEN COPIED"
  460. CLS,17,23,3,3
  461. BOX,17,1,23,80,1,14,3
  462. 16,22,17,3,":END"
  463. 18,8,0,3,"This is a LABEL, an area of the batch file indicated by a name."
  464. 19,8,0,3,"This is where the batch file jumps to if we enter the filenames"
  465. 20,8,0,3,"incorrectly.  If there were any commands following this label, they"
  466. 21,8,0,3,"would be executed.  As there are no further commands, the batch"
  467. 22,8,0,3,"file simply ends."
  468. SPACE,3,0
  469. 16,22,1,3,":END"
  470. CLS,1,25,0,4
  471. BOX,1,1,25,80,1,13,4
  472. 3,0,2,4,"█  █  █ █████ █████ █████ █   █      █  █████     █  █  █ █████ █████ █   █"
  473. 4,0,2,4,"█  █  █ █   █   █   █     █   █      █    █       █  █  █ █   █ █   █ █  █ "
  474. 5,0,2,4,"█  █  █ █████   █   █     █████      █    █       █  █  █ █   █ █████ ███  "
  475. 6,0,2,4,"█  █  █ █   █   █   █     █   █      █    █       █  █  █ █   █ █  █  █  █ "
  476. 7,0,2,4,"███████ █   █   █   █████ █   █      █    █       ███████ █████ █   █ █   █"
  477. 9,8,7,4,"Enter the batch file command:  MOVE MTDSALES *.OLD"
  478. 10,8,0,4,"C>"
  479. INPUT,2,10,10,EXACT,MOVE MTDSALES *.OLD
  480. 11,8,0,4,"ECHO OFF"
  481. CLS,1,25,0,4
  482. 3,8,0,4,"FILE COPIER AND DELETER"
  483. 4,8,0,4,"Strike a key when ready . . ."
  484. INKEY,2,ANY
  485. 5,8,0,4,"      1 File(s) copied"
  486. 6,8,0,4,"FILE MTDSALES HAS BEEN COPIED"
  487. 8,8,0,4,"C>"
  488. SPACE,4,0
  489. 10,0,0,4,"Do you see how it works?"
  490. SPACE,4,0
  491. 12,22,3,4,"ECHO OFF"
  492. 13,22,3,4,"CLS"
  493. 14,22,3,4,"REM COPIES FILES FROM ONE AREA TO ANOTHER"
  494. 15,22,3,4,"REM AND THEN DELETES THE ORIGINALS."
  495. 16,22,3,4,"ECHO FILE COPIER AND DELETER"
  496. 17,22,3,4,"PAUSE"
  497. 18,22,3,4,"IF ~%2~ == ~~ GOTO END"
  498. 19,22,3,4,"IF NOT EXIST %1 GOTO END"
  499. 20,22,3,4,"COPY %1 %2"
  500. 21,22,3,4,"DEL %1"
  501. 22,22,3,4,"ECHO FILE %1 HAS BEEN COPIED"
  502. 23,22,3,4,":END"
  503. SPACE,4,0
  504. CLS,1,25,3,5
  505. BOX,1,1,25,80,1,14,5
  506. 3,0,7,5,"█████  █████  █████  █████  █████  █  █████  █  █   █  █████"
  507. 4,0,7,5,"█   █  █   █  █   █  █        █    █  █      █  ██  █  █    "
  508. 5,0,7,5,"█████  █████  █████  █        █    █  █      █  █ █ █  █  ██"
  509. 6,0,7,5,"█      █  █   █   █  █        █    █  █      █  █  ██  █   █"
  510. 7,0,7,5,"█      █   █  █   █  █████    █    █  █████  █  █   █  █████"
  511. 9,8,0,5,"BATCH FILES are a little more complex than the rest of your DOS"
  512. 10,8,0,5,"commands.  But they also offer great power when it comes to doing"
  513. 11,8,0,5,"repetitious tasks."
  514. SPACE,5,0
  515. 13,8,0,5,"The best way to learn how to use batch files is to practice creating"
  516. 14,8,0,5,"a few.  Experiment and see what works.  Remember that batch files"
  517. 15,8,0,5,"are mostly collections of DOS commands.  When creating a batch file,"
  518. 16,8,0,5,"you may wish to ask yourself these easy questions:"
  519. SPACE,5,0
  520. 18,12,3,5,"1. What is this batch file supposed to do (in simple english)?"
  521. 19,12,3,5,"2. What order should the steps be to accomplish this?"
  522. 20,12,3,5,"3. What DOS commands will perform these functions?"
  523. SPACE,5,3
  524. CLS,1,25,3,6
  525. BOX,1,1,25,80,1,14,6
  526. 3,8,0,6,"Let's create a simple batch file to list the contents of a word"
  527. 4,8,0,6,"processing subdirectory (WORDPROC).  First, ask the three questions:"
  528. 6,8,0,6,"What is this batch file supposed to do?"
  529. SPACE,6,0
  530. 7,12,7,6,"List the contents of the word processing directory."
  531. SPACE,6,7
  532. 9,8,0,6,"What order should the steps be to accomplish this?"
  533. SPACE,6,0
  534. 10,12,7,6,"Turn screen echo off. Clear the screen.  List the directory."
  535. SPACE,6,7
  536. 12,8,0,6,"What DOS commands will perform these functions?"
  537. SPACE,6,0
  538. 13,12,7,6,"ECHO OFF       CLS       DIR"
  539. SPACE,6,7
  540. CLS,1,25,3,7
  541. BOX,1,1,25,80,1,14,7
  542. 3,0,1,7,"COPY CON:LISTWORD.BAT"
  543. 5,8,4,7,"We will use the COPY CON: command in order to create this tiny"
  544. 6,8,4,7,"batch file.  If the file was more complex we would use the EDLIN"
  545. 7,8,4,7,"program so that we could add and delete lines as we created the"
  546. 8,8,4,7,"batch file.  For now, enter the above shown command line."
  547. 10,8,1,7,"C>"
  548. INPUT,2,10,10,EXACT,COPY CON:LISTWORD.BAT
  549. 10,40,1,7,"Good.  Now what is the first line?"
  550. INPUT,2,11,8,ANY
  551. IF,2,NOT,ECHO OFF,11,40,5,7,"TRY: ECHO OFF"
  552. IF,2,NOT,ECHO OFF,INPUT,2,11,8,EXACT,ECHO OFF
  553. 12,40,1,7,"NEXT?"
  554. INPUT,2,12,8,ANY
  555. IF,2,NOT,CLS,12,40,5,7,"TRY: CLS"
  556. IF,2,NOT,CLS,INPUT,2,12,8,EXACT,CLS
  557. 13,40,1,7,"AND LASTLY..."
  558. INPUT,2,13,8,ANY
  559. IF,2,NOT,DIR C:\WORDPROC,13,40,5,7,"TRY: DIR C:\WORDPROC"
  560. IF,2,NOT,DIR C:\WORDPROC,INPUT,2,13,8,EXACT,DIR C:\WORDPROC
  561. 17,8,5,7,"Now tell the computer you are finished by entering our END OF FILE"
  562. 18,8,5,7,"notation:   ^Z and ENTER."
  563. 14,8,1,7,"_"
  564. INKEY,2,ANY
  565. 14,8,1,7,"^Z"
  566. INKEY,2,ANY
  567. 19,0,17,7,"VERY GOOD!"
  568. SPACE,7,1
  569. 19,0,1,7,"VERY GOOD!"
  570. 21,8,4,7,"Now, let's use our batch file.  Just enter the filename:"
  571. 22,8,1,7,"C>"
  572. INPUT,2,22,10,ANY
  573. IF,2,NOT,LISTWORD,22,40,5,7,"TRY:  LISTWORD"
  574. IF,2,NOT,LISTWORD,INPUT,2,22,10,EXACT,LISTWORD
  575. CLS,1,25,3,0
  576. 3,8,2,0,"Volume in drive C is HARDDISK"
  577. 4,8,2,0,"Directory of C:\WORDPROC"
  578. 6,8,2,0,"MYFILE    DOC  1794  01-01-88  11:09p"
  579. 7,8,2,0,"LETTER1   DOC  5721  02-13-88  12:27p"
  580. 8,8,2,0,"WXMODEM   DOC 62848  11-25-87   9:15a"
  581. 9,8,2,0,"    3 File(s)   10504192 bytes free"
  582. 10,8,2,0,"C>"
  583. 17,0,19,0,"THAT'S THE TICKET!"
  584. SPACE,0,4
  585. CLS,1,25,3,0
  586. BOX,1,1,25,80,1,14,0
  587. 3,0,5,0,"█████  █   █  █████   ████   █████  █   █  █████  █████"
  588. 4,0,5,0,"█   █  █   █    █    █    █  █       █ █   █      █    "
  589. 5,0,5,0,"█████  █   █    █    █    █  ████     █    ████   █    "
  590. 6,0,5,0,"█   █  █   █    █    █    █  █       █ █   █      █    "
  591. 7,0,5,0,"█   █  █████    █     ████   █████  █   █  █████  █████"
  592. 9,8,2,0,"The AUTOEXEC.BAT file is another form of batch file that has one"
  593. 10,8,2,0,"function in addition to a standard batch file.  When you turn your"
  594. 11,8,2,0,"computer on, it looks for a file by the name of AUTOEXEC.BAT.  If"
  595. 12,8,2,0,"it finds one, it will automatically perform the steps that are"
  596. 13,8,2,0,"in that file."
  597. SPACE,0,2
  598. 15,8,3,0,"What is this good for?  Well, let's imagine there are several things"
  599. 16,8,3,0,"you wish to do every time you turn on your computer:"
  600. SPACE,0,3
  601. 18,8,6,0,"ECHO OFF"
  602. SPACE,0,6
  603. 18,18,6,0,"CLEAR SCREEN"
  604. SPACE,0,6
  605. 18,32,6,0,"SWITCH TO UTILITY SUBDIRECTORY"
  606. SPACE,0,6
  607. 18,64,6,0,"SET TIME CLOCK"
  608. SPACE,0,6
  609. 19,8,6,0,"SWITCH BACK TO MAIN DIRECTORY"
  610. SPACE,0,6
  611. 19,40,6,0,"DISPLAY THE MAIN DIRECTORY CONTENTS"
  612. SPACE,0,6
  613. CLS,1,25,3,1
  614. BOX,1,1,25,80,1,14,1
  615. 3,0,3,1,"Here's an AUTOEXEC.BAT file that could do it:"
  616. 5,8,7,1,"ECHO OFF"
  617. 6,8,7,1,"CLS"
  618. 7,8,7,1,"CD C:\UTIL"
  619. 8,8,7,1,"TIMER SET"
  620. 9,8,7,1,"CD C:\"
  621. 10,8,7,1,"DIR/W"
  622. SPACE,1,7
  623. 14,8,2,1,"If you had this file on your hard disk, your computer would"
  624. 15,8,2,1,"perform these functions every time you booted it up.  Your"
  625. 16,8,2,1,"hard disk has only one AUTOEXEC.BAT file.  If you have a floppy"
  626. 17,8,2,1,"disk system, you could have a separate AUTOEXEC.BAT file on every"
  627. 18,8,2,1,"floppy disk you have."
  628. SPACE,1,2
  629. 20,8,3,1,"The AUTOEXEC.BAT file works exactly like any other batch file; the"
  630. 21,8,3,1,"only difference is that it is executed automatically on startup."
  631. 22,8,3,1,"It makes booting of your computer system easier!"
  632. SPACE,1,3
  633. CLS,1,25,3,2
  634. BOX,1,1,25,80,1,14,2
  635. 3,0,5,2,"█████  █████  █   █  █████  █  █████     █████  █   █  █████"
  636. 4,0,5,2,"█      █   █  ██  █  █      █  █         █      █   █  █    "
  637. 5,0,5,2,"█      █   █  █ █ █  ████   █  █  ██     █████  █████  █████"
  638. 6,0,5,2,"█      █   █  █  ██  █      █  █   █         █    █        █"
  639. 7,0,5,2,"█████  █████  █   █  █      █  █████  █  █████    █    █████"
  640. 9,8,0,2,"There is one more file that executes automatically upon booting."
  641. 10,8,0,2,"This file is called CONFIG.SYS (often referred to as CONFIG)."
  642. 11,8,0,2,"CONFIG tells your computer the manner in which it is ~put together~."
  643. 12,8,0,2,"There are some computer options that you can engage upon booting."
  644. 13,8,0,2,"These options must be activated by CONFIG.SYS."
  645. SPACE,2,0
  646. 15,8,1,2,"CONFIG.SYS is created in the same manner as any batch file.  If you"
  647. 16,8,1,2,"own an IBM or compatible computer, chances are you already have a"
  648. 17,8,1,2,"CONFIG.SYS file on your system, especially if you have a hard disk"
  649. 18,8,1,2,"drive."
  650. SPACE,2,1
  651. CLS,1,25,3,3
  652. BOX,1,1,25,80,1,14,3
  653. 3,8,0,3,"Let's study a sample CONFIG.SYS file and see a small example of"
  654. 4,8,0,3,"some standard CONFIG uses:"
  655. 6,12,1,3,"FILES = 20"
  656. 7,12,1,3,"BUFFERS = 30"
  657. 8,12,1,3,"DEVICE = RAMDISK 128 D"
  658. 9,12,1,3,"DEVICE = ANSI.SYS"
  659. SPACE,3,1
  660. CLS,11,23,3,0
  661. BOX,11,1,23,80,2,14,0
  662. 6,12,17,3,"FILES = 20"
  663. 13,8,2,0,"Some programs require a certain number of files to be accessible"
  664. 14,8,2,0,"at the same time.  Ordinarily, DOS is intended to be able to use"
  665. 15,8,2,0,"up to four files at once.  If your program needs to use more than"
  666. 16,8,2,0,"four, you need to have this line (or a similar one) in your CONFIG"
  667. 17,8,2,0,"file.  Your program instructions will direct you as to what number"
  668. 18,8,2,0,"to use for the FILES figure."
  669. SPACE,0,2
  670. 6,12,1,3,"FILES = 20"
  671. CLS,11,23,3,0
  672. BOX,11,1,23,80,2,14,0
  673. 7,12,17,3,"BUFFERS = 30"
  674. 13,8,3,0,"The BUFFERS indicator tells your computer to open up more transfer"
  675. 14,8,3,0,"space for FILE information.  Liken the FILES and BUFFERS commands"
  676. 15,8,3,0,"to building a highway.  In FILES, you are telling your highway"
  677. 16,8,3,0,"department that more automobiles are going to be driving through."
  678. 17,8,3,0,"In BUFFERS, you are telling them to build more streets to make it"
  679. 18,8,3,0,"easier for those autos to get through.  BUFFERS sets aside a certain"
  680. 19,8,3,0,"amount of RAM to be used for information transfer purposes."
  681. SPACE,0,3
  682. 7,12,1,3,"BUFFERS = 30"
  683. CLS,11,23,3,0
  684. BOX,11,1,23,80,2,14,0
  685. 8,12,17,3,"DEVICE ="
  686. 9,12,17,3,"DEVICE ="
  687. 13,8,6,0,"DEVICE tells your computer that you are defining a new kind of"
  688. 14,8,6,0,"equipment or software that will extend the computer's normal"
  689. 15,8,6,0,"abilities.  It is similar to dropping a memo to your employees"
  690. 16,8,6,0,"telling them that you have installed a new photocopy machine"
  691. 17,8,6,0,"and then providing them with instructions on how to use this"
  692. 18,8,6,0,"brand new device."
  693. SPACE,0,6
  694. 8,12,1,3,"DEVICE ="
  695. 9,12,1,3,"DEVICE ="
  696. CLS,11,23,3,0
  697. BOX,11,1,23,80,2,14,0
  698. 8,12,17,3,"DEVICE = RAMDISK 128 D"
  699. 13,8,4,0,"RAMDISK refers to an ~artificial~ disk drive that is made up"
  700. 14,8,4,0,"entirely of RAM.  You are literally telling your computer to set"
  701. 15,8,4,0,"aside a portion of RAM and pretend it is a disk drive.  This is"
  702. 16,8,4,0,"used primarily for specific applications which must function with"
  703. 17,8,4,0,"extreme speed.  In the above line we told the computer to set up a"
  704. 18,8,4,0,"128K ramdisk and call it drive D.  Most people do not use RAMDISK,"
  705. 19,8,4,0,"but it is nice that you can tell your computer to allow this by"
  706. 20,8,4,0,"means of the CONFIG.SYS file, isn't it?"
  707. SPACE,0,4
  708. 8,12,1,3,"DEVICE = RAMDISK 128 D"
  709. CLS,11,23,3,0
  710. BOX,11,1,23,80,2,14,0
  711. 9,12,17,3,"DEVICE = ANSI.SYS"
  712. 13,8,5,0,"ANSI.SYS is a special graphics and screen control system.  It is"
  713. 14,8,5,0,"somewhat standardized among different computers.  If you have"
  714. 15,8,5,0,"ANSI capability, you can speak with other computer systems across"
  715. 16,8,5,0,"telephone lines more easily.  Some programs REQUIRE ANSI.SYS to"
  716. 17,8,5,0,"be in operation.  This line tells your computer to incorporate"
  717. 18,8,5,0,"ANSI.SYS as part of its operating processes."
  718. SPACE,0,5
  719. 9,12,1,3,"DEVICE = ANSI.SYS"
  720. CLS,11,23,3,0
  721. BOX,11,1,23,80,2,14,0
  722. 13,8,7,0,"As we have stated, both AUTOEXEC.BAT and CONFIG.SYS are executed"
  723. 14,8,7,0,"automatically when you boot your computer system.  Other batch"
  724. 15,8,7,0,"files work only when you enter their names."
  725. SPACE,4,7
  726. CLS,1,25,3,3
  727. BOX,1,1,25,80,1,14,3
  728. 3,0,4,3,"████    ███    ████  █   █  █   █  ████ "
  729. 4,0,4,3,"█   █  █   █  █      █  █   █   █  █   █"
  730. 5,0,4,3,"████   █████  █      ███    █   █  ████ "
  731. 6,0,4,3,"█   █  █   █  █      █  █   █   █  █    "
  732. 7,0,4,3,"████   █   █   ████  █   █   ███   █    "
  733. 9,8,1,3,"Time to discuss a very important aspect of computer use... a subject"
  734. 10,8,1,3,"that is unfortunately ignored by ninety percent of personal"
  735. 11,8,1,3,"computer users.  The subject is BACKUP OF DATA."
  736. SPACE,3,1
  737. 13,0,1,3,"As one astute advertisement puts it:"
  738. 15,20,0,3,"IT'S NOT IF YOU LOSE DATA... IT'S WHEN!!!"
  739. 15,29,16,3,"IF"
  740. 15,54,16,3,"WHEN"
  741. SPACE,3,0
  742. 15,29,0,3,"IF"
  743. 15,54,0,3,"WHEN"
  744. 17,8,1,3,"Computer data is fragile.  It can be destroyed by many things.  Here"
  745. 18,8,1,3,"is just a PARTIAL list of things that can destroy floppy disk data:"
  746. 20,8,0,3,"HOUSE DUST      CIGARETTE SMOKE      TELEPHONE HANDSETS (MAGNET)"
  747. 21,8,0,3,"FINGERPRINTS    PAPER CLIP HOLDERS     PAPER CLIPS    CHILDREN"
  748. 22,8,0,3,"PETS     SUNLIGHT (HEAT)    ACCIDENTAL SCRATCHING      MARKING PENS"
  749. 23,8,0,3,"COFFEE CUPS    DROPPING     SITTING AROUND     CRASHED DISK DRIVE"
  750. SPACE,3,0
  751. CLS,1,25,3,4
  752. BOX,1,1,25,80,1,14,4
  753. 3,8,3,4,"All of those things and many more have been responsible for destruction"
  754. 4,8,3,4,"of floppy disk data.  HARD DISKS can be destroyed by other things as"
  755. 5,8,3,4,"well:"
  756. SPACE,4,1
  757. 7,8,7,4,"JOSTLING THE SYSTEM    ELECTRICAL SURGES      MECHANICAL FAILURE"
  758. 8,8,7,4,"INTENTIONAL VANDALISM     TEMPORARY COMPUTER CONFUSION"
  759. SPACE,4,7
  760. 10,8,3,4,"With all of this working against you, it is ESSENTIAL that you back"
  761. 11,8,3,4,"up (make extra copies of) important software... be it programs or"
  762. 12,8,3,4,"data.  Here are some rules for backing up your system:"
  763. SPACE,4,3
  764. 14,8,0,4,"1. Back up your data daily if you use your computer daily."
  765. SPACE,4,0
  766. 15,8,0,4,"2. Never use a MASTER program disk.  Use a copy for daily work."
  767. SPACE,4,0
  768. 16,8,0,4,"3. Never purchase important software without backup ability."
  769. SPACE,4,0
  770. 17,8,0,4,"4. Rotate your backup media (keep several backup sets and rotate"
  771. 18,8,0,4,"   the use of those sets)."
  772. SPACE,4,0
  773. 19,8,0,4,"5. Keep your backup and MASTER copies in a safe place (especially"
  774. 20,8,0,4,"   from theft and fire)."
  775. SPACE,4,0
  776. CLS,1,25,3,5
  777. BOX,1,1,25,80,1,14,5
  778. 3,15,7,5,"BACKUP MEDIA"
  779. 5,0,0,5, "  █████████      ██████████████████       ████████       ████████"
  780. 6,0,0,5, "  ██o███o██      █████o██████o█████       ████████       ███▀▀███"
  781. 7,0,0,5, "  █████████      ██████████████████       ███░░███       ███▄▄███"
  782. 8,0,0,5, "                 ██████████████████       ████████       ███▌▐███"
  783. 10,0,0,5,"STREAMING TAPE      VIDEO TAPE            BERNOULLI       FLOPPY "
  784. 12,8,1,5,"There are several different types of backup media, each with its"
  785. 13,8,1,5,"advantages and disadvantages.  Let's discuss them:"
  786. SPACE,5,1
  787. CLS,14,24,3,0
  788. BOX,14,1,24,80,2,14,0
  789. 15,0,7,0,"WHY BACK UP?"
  790. 16,8,3,0,"Because you are likely to spend ten times more putting data into"
  791. 17,8,3,0,"your computer than you will ever spend for the computer itself or"
  792. 18,8,3,0,"the software to run it.  A business may spend $3,000 for a computer"
  793. 19,8,3,0,"system, and then $20,000 during the first year putting data into it."
  794. SPACE,0,3
  795. CLS,14,24,3,0
  796. BOX,14,1,24,80,2,14,0
  797. 15,0,7,0,"FLOPPY DISK SYSTEMS"
  798. 16,8,3,0,"Backing up a floppy disk system is easy; simply make a copy of each"
  799. 17,8,3,0,"valuable disk you own, and then update that copy each time you"
  800. 18,8,3,0,"update the normal work diskette.  Of COURSE this takes more time..."
  801. 19,8,3,0,"but not nearly as much as the time you will spend if you ever have to"
  802. 20,8,3,0,"re-enter lost data!"
  803. SPACE,0,3
  804. CLS,14,24,3,0
  805. BOX,14,1,24,80,2,14,0
  806. 15,0,7,0,"STREAMING TAPE"
  807. 16,8,3,0,"Streaming tape uses a special cassette tape system to copy data from"
  808. 17,8,3,0,"a hard disk drive."
  809. 18,8,3,0,"  ADVANTAGES:  Fast.  Cassettes are small and easily portable."
  810. 19,8,3,0,"  DISADVANTAGES: Tapes are expensive and wear out annually."
  811. SPACE,0,3
  812. CLS,14,24,3,0
  813. BOX,14,1,24,80,2,14,0
  814. 15,0,7,0,"VIDEO TAPE"
  815. 16,8,3,0,"This system copies hard disk data to any quality video tape machine."
  816. 17,8,3,0,"   ADVANTAGES:  Least expensive media of all backup systems."
  817. 19,8,3,0,"   DISADVANTAGES:  slower than streaming tape. "
  818. SPACE,0,3
  819. CLS,14,24,3,0
  820. BOX,14,1,24,80,2,14,0
  821. 15,0,7,0,"BERNOULLI"
  822. 16,8,3,0,"A special technology that uses a replacable high-density cartridge."
  823. 17,8,3,0,"Combines hard disk with floppy disk principles."
  824. 18,8,3,0,"   ADVANTAGES:  Fast, reliable.  Almost unlimited storage."
  825. 19,8,3,0,"   DISADVANTAGES:  Cartridges very expensive.  In some instances"
  826. 20,8,3,0,"there may be some computer incompatibility.  System itself is"
  827. 21,8,3,0,"very expensive."
  828. SPACE,0,3
  829. CLS,14,24,3,0
  830. BOX,14,1,24,80,2,14,0
  831. 15,0,7,0,"FLOPPY DISK"
  832. 16,8,3,0,"Your hard disk can be backed up using floppy diskettes."
  833. 17,8,3,0,"   ADVANTAGES:  Equipment already present."
  834. 18,8,3,0,"   DISADVANTAGES: It is so slow and time consuming you will probably"
  835. 19,8,3,0,"not make backups on a regular basis.  Floppy disk is not reliable"
  836. 20,8,3,0,"due to the fragile nature of floppies. Much slower than other"
  837. 21,8,3,0,"methods of backup.  Requires constant user action to change disks."
  838. 22,8,3,0,"Expensive... requires a LOT of floppy diskettes."
  839. SPACE,0,3
  840. CLS,1,25,3,6
  841. BOX,1,1,25,80,1,14,6
  842. 3,0,7,6,"BACKUP C:\*.* A:/S"
  843. 5,8,0,6,"Since every computer user has a floppy disk, we will show you how to"
  844. 6,8,0,6,"backup your hard disk, using floppy disks as our backup media."
  845. 7,8,0,6,"However, if you have hard disk you should be using a more professional"
  846. 8,8,0,6,"method of backing up your files."
  847. SPACE,6,0
  848. 10,8,0,6,"If you are using 360K diskettes, you will need approximately thirty"
  849. 11,8,0,6,"diskettes for every 10 megabytes of hard disk storage.  So for a"
  850. 12,8,0,6,"30 meg system, you will need approximately 100 diskettes."
  851. SPACE,6,0
  852. 14,8,0,6,"These diskettes must be FORMATTED as data disks before you can"
  853. 15,8,0,6,"begin your backup procedure.  Because of this, your first-time floppy"
  854. 16,8,0,6,"backup session for a 30 meg disk can take an entire day.  Now you see"
  855. 17,8,0,6,"why floppy disk backup is not the best choice."
  856. SPACE,6,0
  857. 19,8,0,6,"The standard backup command is as listed above.  The computer"
  858. 20,8,0,6,"will instruct you when to exchange diskettes.  The command basically"
  859. 21,8,0,6,"tells the computer to BACKUP from drive C:, ALL FILES (*.*) to drive"
  860. 22,8,0,6,"A:, and include all subdirectories (/S) from drive C."
  861. SPACE,6,0
  862. CLS,18,23,0,6
  863. BOX,18,1,23,80,2,14,6
  864. 19,8,0,6,"We won't actually do this now, as we don't have the next 2 1/2 hours"
  865. 20,8,0,6,"to sit around waiting for it to finish.  Instead, take notes and you"
  866. 21,8,0,6,"can try it out on your own time when you're feeling masochistic."
  867. SPACE,6,0
  868. CLS,1,25,3,7
  869. BOX,1,1,25,80,1,14,7
  870. 3,0,4,7,"BACKUP C:\*.* A:/S/A/M"
  871. 5,8,1,7,"Obviously you don't want to do this kind of thing every day.  So the"
  872. 6,8,1,7,"BACKUP command allows another function called Daily Incremental"
  873. 7,8,1,7,"Backup (you can call it DIB for short... hey, we just coined a word!)."
  874. SPACE,7,1
  875. 9,8,1,7,"This backup command will backukp ONLY files that have been altered"
  876. 10,8,1,7,"since the last backup session.  The /A and /M added to the"
  877. 11,8,1,7,"standard backup command mean:  ADD this to the last used backup disk"
  878. 12,8,1,7,"(attach it to the end).  Use MODIFIED files only."
  879. SPACE,7,1
  880. 14,8,1,7,"When you begin a DIB, start with the diskette LAST USED in your"
  881. 15,8,1,7,"previous backup session.  It probably still has some space left on"
  882. 16,8,1,7,"it, and the DIB session will fill up that space before continuing on"
  883. 17,8,1,7,"to another diskette.  In this way it will make the most of your" 
  884. 18,8,1,7,"diskette storage space."
  885. SPACE,7,1
  886. 20,8,1,7,"It is a good idea to NUMBER your disks sequentially so that you do"
  887. 21,8,1,7,"not lose track of them.  Oh, and in case you haven't noticed, DIB"
  888. 22,8,1,7,"requires that you have some more diskettes on hand to store the"
  889. 23,8,1,7,"modified information.  Twenty or thirty ought to do the trick."
  890. SPACE,7,1
  891. CLS,1,25,3,0
  892. BOX,1,1,25,80,1,14,0
  893. 3,0,4,0,"RESTORE A: C:\*.* /S"
  894. 5,8,2,0,"Of course, if you back up data, you must be able to retrieve it when"
  895. 6,8,2,0,"the universe shuts down.  The RESTORE command performs this task."
  896. 7,8,2,0,"The entry shown above will restore ALL files from ALL diskettes, to be"
  897. 8,8,2,0,"taken from drive A: and restored to drive C.  The computer will"
  898. 9,8,2,0,"automatically keep track of proper subdirectory locations, even"
  899. 10,8,2,0,"creating new subdirectories if required."
  900. SPACE,0,2
  901. 12,8,7,0,"RESTORE A: C:\subdir\filename"
  902. 14,8,5,0,"This form of the RESTORE command is used to retrieve a single file"
  903. 15,8,5,0,"or subdirectory.  Examples:"
  904. SPACE,0,5
  905. 16,8,6,0,"   RESTORE A: C:\WORDPROC\*.*   retrieves all files in the WORDPROC"
  906. 17,8,6,0,"                                  subdirectory."
  907. SPACE,0,6
  908. 18,8,6,0,"   RESTORE A: C:\WORDPROC\LETTER1  retrieves only the LETTER1 file."
  909. SPACE,0,6
  910. 20,8,3,0,"Unless you know the exact location of that file on diskette, you may"
  911. 21,8,3,0,"have to feed in disk after disk until your computer finds the file"
  912. 22,8,3,0,"you have specified."
  913. SPACE,0,3
  914. CLS,1,25,3,0
  915. BOX,1,1,25,80,1,14,0
  916. 7,8,2,0,"While this may all seem very complex, other forms of backup are"
  917. 8,8,2,0,"much easier to use and much more reliable than floppy disk backup."
  918. 9,8,2,0,"Your computer consultant should be able to help you install the"
  919. 10,8,2,0,"backup system that will best suit your needs."
  920. SPACE,0,3
  921. CLS,1,25,1,7
  922. BOX,1,1,25,80,1,13,7
  923. 3,0,4,7,"█   █  █████  █   █  █████"
  924. 4,0,4,7,"██  █  █       █ █     █  "
  925. 5,0,4,7,"█ █ █  ████     █      █  "
  926. 6,0,4,7,"█  ██  █       █ █     █  "
  927. 7,0,4,7,"█   █  █████  █   █    █  "
  928. 10,8,1,7,"This section brings us to the end of our DOS COMMANDS section."
  929. 11,8,1,7,"In the next section we will learn how to use some of these commands"
  930. 12,8,1,7,"to make our computer operations easier to perform.  MENUING allows"
  931. 13,8,1,7,"you to call up any computer operation with ease.  We will be learning"
  932. 14,8,1,7,"how to MENUIZE our computer system.. a Drew Software specialty!"
  933. 16,8,1,7,"Press SPACE for the next session, or ESC to end."
  934. SPACE,7,1
  935. PROG,CT7.DAT
  936.  
  937.